package com.bw.trade.controller;


import com.bw.trade.pojo.TbBorrowLog;
import com.bw.trade.pojo.TbCheckBillException;
import com.bw.trade.pojo.TbTransactionLog;
import com.bw.trade.service.TbCheckBillExceptionService;
import com.bw.trade.service.TbTransactionLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 对账异常表 前端控制器
 * </p>
 *
 * @author lv
 * @since 2021-03-23
 */
@RestController
@RequestMapping("/tb-check-bill-exception")
public class TbCheckBillExceptionController {

    @Autowired
    private TbCheckBillExceptionService tbCheckBillExceptionService;
    @Autowired
    private TbTransactionLogService tbTransactionLogService;

    @GetMapping("/list")
    public List<TbCheckBillException> list(){
        //serviceListener.getMsg();
       // borrowLogService.searchOrder();

        tbCheckBillExceptionService.abnormal();
        return tbCheckBillExceptionService.list();
    }


}
